/*
 * ConstantesGenerales.java
 *
 * Created on 8 de marzo de 2007, 03:11 PM
 *
 * To change this template, choose Tools | Options and locate the template under
 * the Source Creation and Management node. Right-click the template and choose
 * Open. You can then make changes to the template in the Source Editor.
 */

package com.src.computec.radar.services.base.constantes;

import com.src.computec.radar.services.source.CoreServicesSource;
import java.text.SimpleDateFormat;
import java.util.Locale;

/**
 *
 * @author aocampo
 */
public class ConstantesGenerales{
    
    protected static ConstantesGenerales instance;
    public static Locale LOCALE_DEFAULT = Locale.getDefault();
    public static String FACTORYDAO_CLASSNAME;
    public static String SCHEMA;
    public static SimpleDateFormat SIMPLE_DATE_FORMAT;
    public static SimpleDateFormat SHORT_SIMPLE_DATE_FORMAT;
    public static SimpleDateFormat SHORT_SIMPLE_DATE_FORMAT_TO_HELP;
    public static String CODIGO_TIPO_PROVEEDOR_EMPRESA_MENSAJERIA;
    public static String CODIGO_TIPO_PROVEEDOR_EMPRESA_PAQUETEO;
    public static String ACTIVE_STATE;
    public static String DOWNLOADED_STATE;
    public static String GESTION_ENVIO;
    public static String GESTION_ALISTAMIENTO;
    public static String PATH_ARCHIVOS_BASE;
    public static String TIPO_BASE_EM_NORMAL;
    public static String TIPO_BASE_EM_REASIG;
    public static String TIPO_BASE_EM_NOCLASS;
    public static String DESC_BASE_EM_NORMAL;
    public static String DESC_BASE_EM_REASIG;
    public static String DESC_BASE_EM_NOCLASS;
    public static String CODIGO_DANE_VACIO;
    public static String TIPO_GESTION_RETENCION;
    public static String BASE_PEND_GENERAR_REASIG;
    public static String BASE_GENERADA_REASIG;
    
    // Para el manejo de Generacion de Bases de EM
    public static String NO_CLASS_ORIGINAL;
    public static String NO_CLASS_NO_GENERADO;
    public static String NO_CLASS_GENERADO;
    public static String NO_CLASS_RETENCION;
    
    /** Creates a new instance of ConstantesGenerales */
    protected ConstantesGenerales() {
        CoreServicesSource coreServicesSource		= CoreServicesSource.getInstance();
        this.LOCALE_DEFAULT.setDefault(new Locale("es", "CO"));
        this.FACTORYDAO_CLASSNAME			= coreServicesSource.getCoreServicesSetupKey("DaoFactoryClassName");
        this.SCHEMA					= coreServicesSource.getCoreServicesSetupKey("schema");
        this.SIMPLE_DATE_FORMAT				= new SimpleDateFormat(coreServicesSource.getCoreServicesSetupKey("simpleDateFormat"), this.LOCALE_DEFAULT);
        this.SHORT_SIMPLE_DATE_FORMAT			= new SimpleDateFormat(coreServicesSource.getCoreServicesSetupKey("shortSimpleDateFormat"), this.LOCALE_DEFAULT);
        this.SHORT_SIMPLE_DATE_FORMAT_TO_HELP		= new SimpleDateFormat(coreServicesSource.getCoreServicesSetupKey("shortSimpleDateFormatToHelp"), this.LOCALE_DEFAULT);
        this.CODIGO_TIPO_PROVEEDOR_EMPRESA_MENSAJERIA   = coreServicesSource.getCoreServicesSetupKey("codigoTipoProveedorEmpresaMensajeria");
        this.CODIGO_TIPO_PROVEEDOR_EMPRESA_PAQUETEO     = coreServicesSource.getCoreServicesSetupKey("codigoTipoProveedorEmpresaPaqueteo");
        this.ACTIVE_STATE				= coreServicesSource.getCoreServicesSetupKey("ActiveState");
        this.DOWNLOADED_STATE				= coreServicesSource.getCoreServicesSetupKey("DownloadedState");
        this.GESTION_ENVIO				= coreServicesSource.getCoreServicesSetupKey("tipoGestionEnvioId");
	this.GESTION_ALISTAMIENTO			= coreServicesSource.getCoreServicesSetupKey("gestionAlistamiento");
	this.PATH_ARCHIVOS_BASE				= coreServicesSource.getCoreServicesSetupKey("pathBases");
	this.TIPO_BASE_EM_NORMAL			= coreServicesSource.getCoreServicesSetupKey("tipoBaseNormal");
	this.TIPO_BASE_EM_REASIG			= coreServicesSource.getCoreServicesSetupKey("tipoBaseReasig");
	this.TIPO_BASE_EM_NOCLASS			= coreServicesSource.getCoreServicesSetupKey("tipoBaseNoClass");
	this.DESC_BASE_EM_NORMAL			= coreServicesSource.getCoreServicesSetupKey("descNormal");
	this.DESC_BASE_EM_REASIG			= coreServicesSource.getCoreServicesSetupKey("descReasignacion");
	this.DESC_BASE_EM_NOCLASS			= coreServicesSource.getCoreServicesSetupKey("descNoClass");
	this.CODIGO_DANE_VACIO				= coreServicesSource.getCoreServicesSetupKey("codigoVacioCodigoDane");
	this.TIPO_GESTION_RETENCION			= coreServicesSource.getCoreServicesSetupKey("tipoGestionRetencion");
	this.BASE_PEND_GENERAR_REASIG			= coreServicesSource.getCoreServicesSetupKey("basePendGenerarReasig");
	this.BASE_GENERADA_REASIG			= coreServicesSource.getCoreServicesSetupKey("baseGeneradaReasig");
        
        // Para el manejo de Generacion de Bases de EM
        this.NO_CLASS_ORIGINAL = coreServicesSource.getCoreServicesSetupKey("NoClassOriginal");
        this.NO_CLASS_NO_GENERADO = coreServicesSource.getCoreServicesSetupKey("NoClassNoGenerado");
        this.NO_CLASS_GENERADO = coreServicesSource.getCoreServicesSetupKey("NoClassGenerado");
        this.NO_CLASS_RETENCION = coreServicesSource.getCoreServicesSetupKey("NoClassRetencion");
    }
    
    public static ConstantesGenerales getInstance() {
        if (instance == null) {
            instance = new ConstantesGenerales();
        }
        return instance;
    }
}